<?php
namespace shenka\controllers;
/**
 * Created by PhpStorm.
 * User: zhang
 * Date: 2015/11/26
 * Time: 9:58
 */
abstract class Edition{
    /*子类Select将重写tables、connection、object属性*/
    protected $tables='';//数据表信息
    protected $connection='';//数据库操作对象
    protected $object='';//上一个对象
    protected $queue=array();//关键信息使用数组储存
    protected function __construct($object){
        $this->object=$object;
        $this->connection=$object['connection'];
        $this->tables=$object['dbInfo'];
    }
    abstract public function Querys($p);
}
//韩国版
class Kr extends Edition{
    public $name='星球大冒险—韩国';
    public function __construct($object){
        parent::__construct($object);
    }
    public function Querys($p){
        $this->queue['产品']=$this->name;
        return $this->queue;
    }
}
//星球大冒险
class Star extends Edition{
    private $name='星球大冒险';
    public function __construct($object){
        parent::__construct($object);
    }
    public function Querys($p){
        $this->queue['产品']=$this->name;
        return $this->queue;
    }
}
//星球大冒险
class Art extends Edition{
    private $name='美术棒';
    public function __construct($object){
        parent::__construct($object);
    }
    public function Querys($p){
        $this->queue['产品']=$this->name;
        return $this->queue;
    }
}
//主题乐园
class Press extends Edition{
    private $name='星球大冒险出版社版';
    public function __construct($object){
        parent::__construct($object);
    }
    public function Querys($p){
        $this->queue['产品']=$this->name;
        return $this->queue;
    }
}
//巨龙重生
class Dinosaur extends Edition{
    private $name='巨龙重生';
    public function __construct($object){
        parent::__construct($object);
    }
    public function Querys($p){
        $this->queue['产品']=$this->name;
        return $this->queue;
    }
}
//神卡王国1代
class Edu extends Edition{
    private $name='神卡王国1代';
    public function __construct($object){
        parent::__construct($object);
    }
    public function Querys($p){
        $this->queue['产品']=$this->name;
        return $this->queue;
    }
}
?>
